/*
    I come into a dream
    Leaves fall down but spring
    over a lake birds flying
    village have its nice morning
    everywhere can feel happiness
    Years have never been
    owners don't need anything
    until the sun bring another wind
    #
    
    输出：ILoveYou
*/
#include<bits/stdc++.h>
using namespace std;
int main(){
	while(1){
		string s;
		getline(cin,s);
		if(s[0]=='#')break;
		cout<<s[0];
	}
	return 0;
} 
